package cn.detu.uu;

import java.math.BigDecimal;
import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        //method();
        method2();





    }
    /*public static void method(){
        BigDecimal a = new  BigDecimal(0.1245755488);
        float f = new Scanner(System.in).nextFloat();
        float f1 = new Scanner(System.in).nextFloat();
        System.out.println(f+f1);
        System.out.println(f-f1);
        System.out.println(f*f1);
        System.out.println(f/f1);
    }*/
    public static void method2(){
        double f = new Scanner(System.in).nextDouble();
        double f1 = new Scanner(System.in).nextDouble();
       // BigDecimal b = new BigDecimal(f);
        //BigDecimal c = new BigDecimal(f1);
        BigDecimal e = new BigDecimal(f+"");
        BigDecimal g = new BigDecimal(String.valueOf(f1));

        BigDecimal d = e.add(g);
        BigDecimal d1 = e.subtract(g);
        BigDecimal d2 = e.multiply(g);
        //BigDecimal d3 = e.divide(g);

        System.out.println(d);
        System.out.println(d1);
        System.out.println(d2);
        //System.out.println(d3);


    }
}























































































































































































































































































































































































































































































































































































































































































































































































